package jml.defaultimple.util;

import java.io.File;

public class FilenameFilter implements java.io.FilenameFilter
{
	private String filter;
	
	public FilenameFilter(String s)
	{
		filter=s;
	}

	@Override
	public boolean accept(File dir, String name)
	{
		File f=new File(dir.getAbsoluteFile()+"/"+name);
		
		return name.endsWith(filter) || f.isDirectory();
	}
}
